package com.ld.rightsSystem.service.inf;

import com.ld.rightsSystem.exception.DBDataNotFoundException;
import com.ld.rightsSystem.pojo.TPermission;
import com.ld.rightsSystem.vo.R;

import java.util.Map;

/**
 * <p>
 * 菜单权限表 服务类
 * </p>
 *
 * @author lhb
 * @since 2023-12-27
 */
public interface TPermissionService {

    R addTPermission(TPermission tPermission);

    R deleteTPermissionById(Long permissionId) throws DBDataNotFoundException;

    R editTPermission(TPermission tPermission) throws DBDataNotFoundException;

    R findTPermissionInfoById(Long permissionId) throws DBDataNotFoundException;

    R findTPermissionList(int pageNum, int pageSize, boolean tree);

    Boolean checkPermissionNameAvailable(String checkPName);

    Boolean checkPermissionCodeAvailable(String checkPCode);

    R checkFieldAvailable(String checkPName, String checkPCode);
}
